package com.nq;

import com.nq.dao.MyDao;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@MapperScan(basePackages = "com.nq.dao")
@EnableAsync
@EnableScheduling
@SpringBootApplication(exclude = DataSourceAutoConfiguration.class)
@RestController
public class StockApplication {
    @Resource
    private MyDao myDao;

    /**
     * 接入了短信的一套
     */
    public static void main(String[] args) {
        SpringApplication.run(StockApplication.class, args);
    }


}
